std::basic_ostringstream::str

From Cppreference

Jump to: navigation, search
​basic_string<CharT,Traits,Allocator> str() const;
(1)
void str(const basic_string<CharT,Traits,Allocator>& new_str);
(2)

Manages the contents of the underlying string object.

1) Returns a copy of the underlying string.

2) Replaces the contents of the underlying string.

Parameters

new_str - new contents of the underlying string

Return value

1) a copy of the underlying string object.

2) (none)

Example


Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages